package mvp;

public class LoginModule implements MvpContract.IModule {

    @Override
    public void login(String name, String pwd ,IResult iResult) {

        if (name.equals("test")&&pwd.equals("123")) {

            iResult.result("success");
        }else {
            iResult.result("failed");
        }


    }

    interface IResult{
        void result(String ss);
    }
}
